/*
	This file is part of go-palletone.
	go-palletone is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	go-palletone is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	You should have received a copy of the GNU General Public License
	along with go-palletone.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * @author PalletOne core developer Albert·Gou <dev@pallet.one>
 * @date 2018
 *
 */

package core

const (
	DefaultTokenAmount = "100000000000000000"
	//DefaultTokenDecimal              = 8
	DefaultChainID           = 1
	DefaultPledgeDailyReward = 288745000
	//DefaultPledgeDailyReward = 300000000
	//当 t = 2 时，即按批分红，且继续质押，且提取时，tx_size = 2644 b,当前单元大小为 5 m = 5120 kb =>1,982.934947049924
	//  即 t = 1时，tx_size = 1322 b unit =5120 kb,t = 3,872.919818456884
	DefaultPledgeAllocateThreshold = 1000
	//  当添加新质押地址 t = 2 时，tx_size = 1267 b,当前单元大小为 5 m = 5120 kb =>3,236.345679012346
	//  即 t = 1 时， tx_size = 633.5 b,当前单元大小为 5 m = 5120 kb =>8,088.467614533965
	DefaultPledgeRecordsThreshold = 2000
	// DefaultTxCoinYearRate            = 0
	DefaultRewardHeight              = 100
	DefaultGenerateUnitReward        = 15000
	DefaultDepositPeriod             = 0
	DefaultDepositAmountForMediator  = 50 * 100000000
	DefaultDepositAmountForJury      = 10 * 100000000
	DefaultDepositAmountForDeveloper = 1 * 100000000
	DefaultFoundationAddress         = "P1LA8TkEWxU6FcMzkyeSbf9b9FwZwxrYRuF"

	DefaultUccMemory      = 524288000  // 每个容器使用内存最大 = 524288000 = 500 M
	DefaultUccCpuShares   = 1024       // 每个容器相对占用CPU 1024 = 1 CPU
	DefaultUccCpuQuota    = 100000     //  每个容器最多使用CPU核数 = 1 CPU
	DefaultUccDisk        = 1073741824 //  每个容器磁盘使用量最多使用 = 1073741824 = 1G
	DefaultUccPrivileged  = false
	DefaultUccNetworkMode = "gptn-net" //TODO xiaozhi 生产环境
	//DefaultUccNetworkMode    = "host" //TODO xiaozhi 测试容器运行网络模式
	DefaultUccOOMKillDisable = false

	DefaultContainerDuringTime  = 0    //7天 = 604800 秒
	DefaultRmExpConFromSysParam = true //默认删除过期合约容器以系统参数 7 天为主

	DefaultTempUccMemory    = 1073741824
	DefaultTempUccCpuShares = 1024
	DefaultTempUccCpuQuota  = 200000

	DefaultTokenHolder = "P1Kp2hcLhGEP45Xgx7vmSrE37QXunJUd8gJ"

	DefaultMediator  = "P1nqukWkjFKk4UCUd2mdfV5VAgVuCApyXd"
	DefaultPublickey = "0236b88303d4c1986de09a2d1c292b16fd2b90fb89b5d2874705e4e17c4e648c26"

	DefaultNodeInfo = "pnode://4bdc1c533f6e3700a0a6cc346bf2364eace58a10d8a782762c8d2b27cf4d96c25827c82a15" +
		"684d348e88722b259f31abcccd4d0eaae0f52eeb85e1eb5342b862@127.0.0.1:30303"
	DefaultInitPubKey = "2SvBCoCHWA8Zg2Q8v2onmaTeZj6YmWLbp6mzoCZeDwiUcmuqFwd8fZXCfdmEhTodbWaSJ8T7MvjQiZkn4S9VTQnKDr" +
		"EkETt84Sr58vmjVdhdXNjjzqn8j6oHzvduxGo4UjWB66wd1GFXKoz5XD8hcPDzCyGVqZLjb7wu2pkJxeG1Mt3"

	DefaultJuryAddr = "P16bXzewsexHwhGYdt1c1qbzjBirCqDg8mN"

	DefaultMaxMediatorCount    = 1
	DefaultActiveMediatorCount = 5 //21
	DefaultMinMediatorCount    = 1 //21
	DefaultMinMediatorInterval = 1
	DefaultMinMaintSkipSlots   = 0

	//contract//contractId1:v1;contractId2:v2;contractId3:v3
	DefaultContractSystemVersion = "PCGTta3M4t3yXu8uRgkKvaWd2d8DR32W9vM:ptn002;PCGTta3M4t3yXu8uRgkKvaWd2d8DREThG43:ptn002;PCGTta3M4t3yXu8uRgkKvaWd2d8DRijspoq:ptn002;PCGTta3M4t3yXu8uRgkKvaWd2d8DRLGbeyd:ptn002"

	DefaultContractSignatureNum = 3
	DefaultContractElectionNum  = 4

	DefaultContractTxTimeoutUnitFee  = 10 //s
	DefaultContractTxSizeUnitFee     = 1  //byte
	DefaultContractTxInstallFeeLevel = 2.5
	DefaultContractTxDeployFeeLevel  = 1.5
	DefaultContractTxInvokeFeeLevel  = 1.0
	DefaultContractTxStopFeeLevel    = 0.5

	DefaultText = "姓名 丨 坐标 丨 简介   \r\n" +
		"孟岩丨北京丨通证派倡导者、CSDN副总裁、柏链道捷CEO.\r\n" +
		"刘百祥丨上海丨 GoC-lab发起人兼技术社群负责人,复旦大学计算机博士.\r\n" +
		"陈澄丨上海丨引力区开发者社区总理事,EOS超级节点负责人.\r\n" +
		"孙红景丨北京丨CTO、13年IT开发和管理经验.\r\n" +
		"kobegpfan丨北京丨世界500强企业技术总监.\r\n" +
		"余奎丨上海丨加密经济学研究员、产品研发经理.\r\n" +
		"Shangsong丨北京丨Fabric、 多链、 分片 、跨链技术.\r\n" +
		"郑广军丨上海丨区块链java应用开发.\r\n" +
		"钮祜禄虫丨北京丨大数据架构、Dapp开发.\r\n" +
		"彭敏丨四川丨计算机网络和系统集成十余年有经验.\r\n"

	DefaultRootCABytes = "-----BEGIN CERTIFICATE-----\n" +
		"MIIF2TCCA8GgAwIBAgIUSosLIusWtuc5uB3dbQTwQ+yxogkwDQYJKoZIhvcNAQEL\n" +
		"BQAwdDELMAkGA1UEBhMCQ04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNVBAcMB0Jl\n" +
		"aWppbmcxETAPBgNVBAoMCEhMWVcgTHRkMRIwEAYDVQQLDAlQYWxsZXRPbmUxGjAY\n" +
		"BgNVBAMMEVBhbGxldE9uZSBSb290IENBMB4XDTE5MDQxMDA4MDYyOFoXDTM5MDQw\n" +
		"NTA4MDYyOFowdDELMAkGA1UEBhMCQ04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNV\n" +
		"BAcM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CSqGSIb3DQEBCwUAA4ICAQBkHlCOUUU+5uoO0l1XX6Pi+3Km\n" +
		"y1Q9EJYEW7nHg8jZbOksYI1zZmBOj3kjB6/xWpUHsSnj1z9ArtOdbIKXARVOogd9\n" +
		"0EaOwmjsIoeUg+Pn1H63Ho+pXzSPCBZae1TIp5y7wvTCQ5kz+v9wj449oRi+Z+5w\n" +
		"CVvB4ah61/J9QkXCXoXE2jf732ZwOT+/CFKmnAOwOZeh1r62bnl1zkH87//Wml8n\n" +
		"M1cMZyWO/YZLWznGqM+RHpHeeC1MN6Xrv1c7E+7ZmgNYKKMvr29xdDLOe1WaEQHs\n" +
		"OiaBSL1dwC8XZ8IhP2BIfBMYzB7fDcuZ4aKvwWHBW7m4+cd/V7F8nBDMPyYFcLRb\n" +
		"DsI2ZcuwgAFvxLpC0YNG6yxmfOSq6/HzARIr4xWynH3Gxm13R2Gd/uhgW0wXdlPg\n" +
		"WdzYIZTTFEEENtsmJQEyKi1yVBKxfwvLBg/UhmW49uKHyoOq83rTfOmV+42wWczI\n" +
		"W45ikfBynB9Ev4KeuzdhJAI5zOvicG1rv4I8LbSaI1cjorK+7BVDc2TPK0toNeNc\n" +
		"wTeLUhHXdcCFOSmjuCt2yCZKDBs7tg0mLb1LqykV7c06DkmthhnS3QOdGm0aPvUH\n" +
		"dFarGGsrlNh2dqZ9omTSD7PksyG+FQQgS1b6Vgpoo1sv3Z3RCB+Yshwg9nOKANF3\n" +
		"B8H3cQht7g48a4RhUw==\n" +
		"-----END CERTIFICATE-----"

	/* percentage fields are fixed point with a denominator of 10,000 */
	PalletOne100Percent            = 10000
	PalletOne1Percent              = PalletOne100Percent / 100
	PalletOneIrreversibleThreshold = 70 * PalletOne1Percent

	DefaultMediatorInterval     = 2      //Devin: Don't change   /* seconds */
	DefaultMaintenanceInterval  = 60 * 5 // 60 * 60 * 24 // seconds, aka: 1 day
	DefaultMaintenanceSkipSlots = 0      //Devin: Don't change // 1 // number of slots to skip for maintenance interval

	DefaultMediatorCreateFee        = 50000
	DefaultAccountUpdateFee         = 1000000
	DefaultTransferPtnBaseFee       = 5000
	DefaultTransferPtnPricePerKByte = 30000
	DefaultContractInvokeFee        = 100000000

	DefaultUnitMaxSize = 5 * 1024 * 1024 //5M
)
